package com.neusoft.neuiotms.common.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.common.model.Dictionary;
import com.neusoft.neuiotms.common.model.DictionaryType;

public interface DictionaryRepository extends JpaRepository<Dictionary, Long>, CustomizedDictionaryRepository {

    Dictionary findByCode(String code);

    Dictionary findByCodeAndDictionaryTypeType(String code, String type);

    List<Dictionary> findByDictionaryType(DictionaryType dictionarytype);

    List<Dictionary> findByCodeIn(List<String> codes);

    void deleteByDictionaryTypeId(Long id);

    List<Dictionary> getByDictionaryType(String type);
}
